<html>
    <head>
        <script src="./vue.js"></script>
    </head>
    <body>
        <div id="app">
            <button @onclick="showMyData">单击</button>
            <p>{{msg}}</p>
        </div>
        <script>
            var app=new Vue({
                el:"#app",
                data:{
                    msg:'单击生成数据',
                },
                methods:{
                    showMyData(){
                        this.msg="生成信息"
                    }
                }
            });
        </script>
    </body>
</html>